package _9练习;

public class Class {
	
	String className;
	String classTeacher;
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getClassTeacher() {
		return classTeacher;
	}
	public void setClassTeacher(String classTeacher) {
		this.classTeacher = classTeacher;
	}
	public Class(String className, String classTeacher) {
		super();
		this.className = className;
		this.classTeacher = classTeacher;
	}
	public Class() {
		super();
	}
	
	// 学生类
	public class student{
		
		String name;
		int age;
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public int getAge() {
			return age;
		}
		public void setAge(int age) {
			this.age = age;
		}
		public student() {
			super();
		}
		public student(String name, int age) {
			super();
			this.name = name;
			this.age = age;
		}
		@Override
		public String toString() {
			// TODO Auto-generated method stub
			return (this.name+":是"+Class.this.classTeacher+"管理的"
					+Class.this.className+"的"+this.age+"岁学生");
		}
		
	}

}
